package com.cn.nullframe.controllor;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * controller后面不加路径的访问url:http://localhost:8080/nullframe/rest/index
 * nullframe:项目，名称，rest/index为WEB-INF/web.xml配置servlet的访问入口
 */

@Controller
public class IndexController {
    @RequestMapping(value = "index", method = {RequestMethod.GET})
    public ModelAndView index() {
        ModelAndView mv = new ModelAndView("index");
        return mv;
    }

}
